package pers.xhh.shopapi.entity.to.category;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @author wei-xhh
 * @date 2020-11-25
 */
public class MiCategoryTo {
    @NotBlank
    private String cat_pid;
    @NotBlank(message = "分类名称不能为空！")
    private String cat_name;
    @Min(value = 0, message = "分类层级最小为0")
    @Max(value = 2, message = "分类层级最大为2")
    private Integer cat_level;

    public String getCat_pid() {
        return cat_pid;
    }

    public void setCat_pid(String cat_pid) {
        this.cat_pid = cat_pid;
    }

    public String getCat_name() {
        return cat_name;
    }

    public void setCat_name(String cat_name) {
        this.cat_name = cat_name;
    }

    public Integer getCat_level() {
        return cat_level;
    }

    public void setCat_level(Integer cat_level) {
        this.cat_level = cat_level;
    }
}
